<template>
	<view class="float-btn" @click="$emit('click')">
		<u-icon :name="icon" color="#fff" bold size="36rpx"></u-icon>
		<view class="float-btn-text">{{ text }}</view>
	</view>
</template>

<script>
	export default {
		props: {
			icon: String,
			text: String,
		},
		data() {
			return {
				
			}
		},
		created() {
			
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.float-btn {
		position: fixed;
		right: 30rpx;
		bottom: 50rpx;
		width: 130rpx;
		height: 130rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background-color: $u-primary;
		border-radius: 24rpx;
		box-shadow: 0px 10rpx 10rpx -6rpx rgba(0,0,0, 0.2), 0px 16rpx 20rpx 2rpx rgba(0,0,0,0.14);
		&-text {
			margin-top: 8rpx;
			font-size: 24rpx;
			color: #fff;
		}
	}
</style>